package com.aigou.admin.aigouspringboot.mapper;

import com.aigou.admin.aigouspringboot.entity.Order;
import com.aigou.admin.aigouspringboot.entity.Product;
import com.aigou.admin.aigouspringboot.entity.ReceivingAddress;
import com.aigou.admin.aigouspringboot.entity.dto.ProductQueryDTO;
import com.aigou.admin.aigouspringboot.entity.vo.OrderVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface OrderMapper {
    int deleteByPrimaryKey(String id);

    int insert(Order record);

    int insertSelective(Order record);

    Order selectByPrimaryKey(String id);

    List<Order> selectAll();

    int updateByPrimaryKeySelective(Order record);

    int updateByPrimaryKey(Order record);

    List<Order> selectByUserId(String userId);


    List<OrderVO> getOrderVO(String userId);

    List<OrderVO> selectSalesByCondition(@Param("userId") String userId, @Param("params") Map<String, Object> params);


}